package com.wframe.project.jnd.rest;

import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.Context;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wframe.project.jnd.services.UserService;

@Path("/test")
@Component
public class TestRest {

	@Autowired
	UserService userService;
	
	/**
	 * 用户登录
	 * @param loginname
	 * @param pwd
	 * @param checkcode
	 * @param request
	 * @return
	 */
	@POST  
    @Path("/test")  
	@Consumes("application/x-www-form-urlencoded")      
    public String test(@FormParam(value="loginname") String loginname,@FormParam(value="pwd") String pwd,@FormParam(value="checkcode") String checkcode,@Context HttpServletRequest request) {  
		//@Consumes("application/x-www-form-urlencoded") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
		return null;
	}

}
